#!/bin/sh
currentdate=$(date +%m%d%H%M%S)
ESSID=$(iwconfig wlan1 2>/dev/null |grep -oP '(?<=ESSID:").*?(?=")'| grep ^"hotspot" | grep -oP '\d+')
cd /userdata/workdir/bag/
rosbag record --lz4 -O ${ESSID}_${currentdate}_slam_depth_test$1.bag /chassis/rawdata /chassis/encoder /deptrum/rgb/image_raw/compressed /deptrum/depth/image_raw /imu /odom /sumec_odom /multisensor_fusion_node/chassis_pose_visual /vio_odom
